<!--#include file="./doctype.html"-->
<title><%=editTitle%>管理员-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<ol class="breadcrumb">
		<li><a href="<%=fileName%>?q=index">列表首页</a></li>
		<li class="active"><a href="javascript:;" class="reload"><%=editTitle%></a></li>
	</ol>
	<form method="post" action="<%=fileName%>?q=save" class="mb10" role="form">
		<input type="hidden" name="id" value="<%=iid%>">
		<div class="form-group fix">
			<input id="adminName" name="adminName" class="form-control inline w30" placeholder="登录名" value="<%=data(0)%>" />
			<label class="inline control-label" for="adminName">登录名</label>
		</div>
		<div class="form-group fix">
			<input id="nickName" name="nickName" class="form-control inline w30" placeholder="昵称" value="<%=data(1)%>" />
			<label class="inline control-label" for="nickName">昵称</label>
		</div>
		<div class="form-group fix">
			<input id="password" name="password" class="form-control inline w30" placeholder="登录密码" value="" />
			<label class="inline control-label" for="password">
				登录密码<% if iid > 0 then %>(不修改请留空)<% End if %>
			</label>
		</div>
		<% if iid > 0 then %>
		<div class="form-group fix">
			<label class="inline control-label" for="loginInfo">登录日志</label>
			<textarea id="loginInfo" name="loginInfo" class="form-control" rows="2" placeholder="登录日志"><%=app.hec(data(2))%></textarea>
		</div>
		<% End if %>
		<% if isSuper then %>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default control-label">
                <input name="isStop" value="<%=data(3)%>" type="checkbox"
                <% if app.cj_bool(data(3)) then %>checked="checked"<% End if %>
                > 是否禁用？
            </label>
            <label class="btn btn-sm btn-default control-label">
                <input name="isSuper" value="<%=data(4)%>" type="checkbox"
                <% if app.cj_bool(data(4)) then %>checked="checked"<% End if %>
                > 是否超级管理员？
            </label>
		</div>
		<% End if %>
		<div class="form-group fix text-center submit_box"></div>
	</form>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function() {
	$('#adminName,#nickName<% if iid = 0 then %>,#password<% end if%>').checkEmpty();
$(this)
	.on('submit', 'form', function(){
		return $.submitForm('#adminName,#nickName<% if iid = 0 then %>,#password<% end if%>');
	});
});
</script>
</body>
</html>